package Chapter4;

public class Chuandi {
    public static void main(String[] args) {
        int i = 10;
        i =add(i);
        System.out.println("i:"+i);
    }
    private static int add(int x) {
        //x是i的一个拷贝
        x = x + 1;
        System.out.println("x:"+x);
        return x;
    }
}